import React, { Component } from 'react'
import {
  Card,
  Button,
  Result
} from 'antd'

export default class Settings extends Component {
  backHome = () => {
    this.props.history.push('admin')
  }

  render() {
    return (
      <div>
        <Card
          title="授权页面" 
          bordered={false}
          extra={<Button >取消</Button>} 
        >
          <Result
            status="403"
            title="403"
            subTitle="你没有权限查看此页面"
            extra={<Button type="primary" onClick={ this.backHome }>回到首页</Button>}
          />
        </Card>
      </div>
    )
  }
}
